class CreateBudgets < ActiveRecord::Migration
  def self.up
    create_table :budgets do |t|

      t.string    :title,     :null => false
      t.text      :description

      t.decimal   :total,     :null => false, :precision => 8, :scale => 2
      t.timestamps
    end
  end

  def self.down
    drop_table :budgets
  end
end
